'''
Created on 2012-4-5下午4:01:57

@author: nagat
@email:  yasenagat@gmail.com
'''

    
    #get请求
#    conn = http.client.HTTPConnection("www.baidu.com")
##    headers = {"Content-type": "application/x-www-form-urlencoded","Accept": "text/plain"}
#    print(conn)   
#    conn.request('GET', '/')   
#    r1 = conn.getresponse()
#    print(r1.status,r1.reason)
#    conn.close()

     
#    res = urllib.request.urlopen(url)
#    print(res.status, res.reason)
#     
#    if( res.status != 200 ):
#        exit()
#     
#    print('ok')

    